import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'tdesign:system-sum',
      keepAlive: true,
      order: 1000,
      title: $t('apps.labsys.title'),
    },
    name: 'Labsys',
    path: '/labsys',
    children: [
      {
        // 测试委托单
        name: 'TestOrder',
        path: '/labsys/test-order',
        component: () => import('#/views/labsys/test-order/index.vue'),
        meta: {
          icon: 'bx:task',
          title: $t('apps.labsys.test-order'),
        },
      },
      {
        // 样品台账
        name: 'SampleLedger',
        path: '/labsys/sample-ledger',
        component: () => import('#/views/labsys/sample-ledger/index.vue'),
        meta: {
          icon: 'jam:task-list',
          title: $t('apps.labsys.sample-ledger'),
        },
      },
      {
        // 分析报告
        name: 'report',
        path: '/labsys/report',
        component: () => import('#/views/labsys/report/index.vue'),
        meta: {
          icon: 'hugeicons:file-02',
          title: $t('apps.labsys.report'),
        },
      },
    ],
  },
];

export default routes;
